package com.linkage.jz.bankruptcy.widget.pieView;

import android.support.annotation.NonNull;

public class PieData {

    private String name;        // 名字
    private double percentage;   // 百分比

    private int color = 0;      // 颜色
    private double angle = 0;    // 角度

    /**
     * @param name
     * @param percentage 最大是100
     */
    public PieData(@NonNull String name, @NonNull double percentage) {
        this.name = name;
        this.percentage = percentage;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPercentage() {
        return percentage;
    }

    public void setPercentage(double percentage) {
        this.percentage = percentage;
    }

    public int getColor() {
        return color;
    }

    public void setColor(int color) {
        this.color = color;
    }

    public double getAngle() {
        return angle;
    }

    public void setAngle(double angle) {
        this.angle = angle;
    }

}
